clear all
global data "~\CBO\CBO_DATA\"
global res  "~\CBO\res\"

use ${data}CBOprep.dta, clear

replace w=w*100

//run pooled OLS model with weights

reg ly_net ly_gross [fw=w]
est sto log_w

//run pooled NLS model with weights

poisson y_net ly_gross [fw=w] , robust
est sto nl

esttab log_w log_w nl using  ${data}\CBO_rep_${mode}.tex, replace tex se nostar //stats(N r2)
